package com.nt.oam.service;

import java.util.List;
import com.nt.oam.domain.AntAssetCorrelation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nt.oam.vo.project.AssetsNameListVo;

/**
 * 资产关联Service接口
 *
 * @author JZFeng
 * @date 2025-02-05
 */
public interface IAntAssetCorrelationService extends IService<AntAssetCorrelation> {
    /**
     * 查询资产关联
     *
     * @param assetId 资产关联主键
     * @return 资产关联
     */
    public AntAssetCorrelation selectAntAssetCorrelationByAssetId(Long assetId);

    /**
     * 查询资产关联列表
     *
     * @param antAssetCorrelation 资产关联
     * @return 资产关联集合
     */
    public List<AntAssetCorrelation> selectAntAssetCorrelationList(AntAssetCorrelation antAssetCorrelation);

    /**
     * 新增资产关联
     *
     * @param antAssetCorrelation 资产关联
     * @return 结果
     */
    public int insertAntAssetCorrelation(AntAssetCorrelation antAssetCorrelation);

    /**
     * 修改资产关联
     *
     * @param antAssetCorrelation 资产关联
     * @return 结果
     */
    public int updateAntAssetCorrelation(AntAssetCorrelation antAssetCorrelation);

    /**
     * 批量删除资产关联
     *
     * @param assetIds 需要删除的资产关联主键集合
     * @return 结果
     */
    public int deleteAntAssetCorrelationByAssetIds(Long[] assetIds);

    /**
     * 删除资产关联信息
     *
     * @param assetId 资产关联主键
     * @return 结果
     */
    public int deleteAntAssetCorrelationByAssetId(Long assetId);

    /**
     * 查询资产名称列表
     */
    public List<AssetsNameListVo> getAssetsNameList(String assetsName);
}
